package lab02.test04;

public class Employee {
    private String staffname;
    private int staffnum;
    private float staffsalary;
    private float salarygrowth;

    public Employee() {

    }

    public Employee(String staffname, int staffnum, float staffsalary, float salarygrowth) {
        this.staffname = staffname;
        this.staffnum = staffnum;
        this.staffsalary = staffsalary;
        this.salarygrowth = salarygrowth;
    }

    public String getstaffname() {
        return staffname;
    }

    public int staffnum() {
        return staffnum;
    }

    public float staffsalary() {
        return staffsalary;
    }

    public float salarygrowth() {
        return salarygrowth;
    }

    public void setstaffname(String next) {
        this.staffname = staffname;
    }

    public void setstaffnum(int i) {
        this.staffnum = staffnum;
    }

    public void setstaffsalary(float v) {
        this.staffsalary = staffsalary;
    }

    public void setsalarygrowth(float v) {
        this.salarygrowth = salarygrowth;
    }
    public void print (){
        System.out.println("姓名："+staffname+"工号："+staffnum+"薪水："
                +staffsalary+"薪水增长："+salarygrowth);
    }

}
